// reading a text file
#include <iostream>
#include <fstream>
#include <string>
using namespace std;

int main () {
  string line;
  
  //the variable of type ifstream:
  ifstream myfile ("ar9152.tsp.txt");
  
  //check to see if the file is opened:
  if (myfile.is_open())
  {
    //while there are still lines in the
    //file, keep reading:
	getline (myfile,line);
	getline (myfile,line);
	getline (myfile,line);
	getline (myfile,line);
	getline (myfile,line);

	/*int sl =0;
	line.find_first_of(":");*/
	getline (myfile,line);
	getline (myfile,line);

	
    while (! myfile.eof() )
    {
      //place the line from myfile into the
      //line variable:
      //getline (myfile,line);
		int a;
		double b,c;
		myfile >> a >> b >> c;

      //display the line we gathered:
      cout << a <<" "<< b <<" "<< c << endl;
    }

    //close the stream:
	  
    myfile.close();
	
  }

  else cout << "Unable to open file";

  return 0;
}